<?php 
require_once ('../inc/layout.inc');
require_once ('adminlayout.inc');
HTMLHeader(true);
?>
		<div id="mainWrapper">
			<div id="main">
				<?php 
					$page = $_GET['admin'];
					printHeader(); 
					printAdminNavigation($page);
				?>
				<div id="mainContent">
					<?php 
						if(strlen($page) <= 11 && ($page == '' || $page == 'adHome' || $page == 'mHome' || $page == 'mCall' || $page == 'mAbout' ||
						   $page == 'mContact' || $page == 'mAffiliates')) {
							
						   	switch($page){
						   		case '':
						   			printAdminHome();
						   			break;
						   		case 'mHome':
						   			printManageHome();
						   			break;
						   		case 'mCall':
						   			printManageCall();
						   			break;
						   		case 'mAbout':
						   			printManageAbout();
						   			break;
						   		case 'mContact':
						   			printManageContact();
						   			break;
						   		case 'mAffiliates':
						   			printManageAffiliates();
						   			break;
						   	}
						   	
						}
						else {
							printErrorPage();
						}
					?>
				</div>
				<?php 
				printFooter();
				?>
			</div> <!-- main -->
		</div> <!-- mainWrapper -->
<?php 
HTMLFooter();
?>